/**
 * @(#)Calendar.java
 *
 *
 * @author
 * @version 1.00 2014/2/28
 */

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.util.GregorianCalendar;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Calendar extends JFrame {

    public Calendar() {
		setSize(500, 400);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setVisible(true);
        setTitle("Calendar");

		JPanel borderPanel = new JPanel();
        borderPanel.setLayout(new BorderLayout());
        JLabel lblMonth, lblDay;

        // Initialize GregorianCalendar
        GregorianCalendar cal = new GregorianCalendar();
        int currYear = cal.get(GregorianCalendar.YEAR);
        int currDOM = cal.get(GregorianCalendar.DAY_OF_MONTH);
        int currMnth = cal.get(GregorianCalendar.MONTH);
        int numOfDays = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
        int startOfDay = cal.get(GregorianCalendar.DAY_OF_WEEK_IN_MONTH);

        lblMonth = new JLabel ("January");

        borderPanel.add(lblMonth);

    }

	public static void main(String[] args) {
        new Calendar();
    }

}